/*
 * @Descripttion: 
 * @version: 
 * @Author: yuanliutech
 * @Date: 2022-12-13 14:39:24
 * @LastEditors: yuanliutech@lwj
 * @LastEditTime: 2022-12-30 10:15:03
 */
import {
    validSpaceSpecialCharEmoji,
    validMobile
} from "@utils/validate";
export default {
    data() {
        return {
            rules: {
                name: [{
                        required: true,
                        message: "请输入名称",
                        trigger: "blur"
                    },
                    {
                        validator: validSpaceSpecialCharEmoji
                    },
                ],
                username: [{
                    required: true,
                    message: "请输入联系人姓名",
                    trigger: "blur"
                }, {
                    validator: validSpaceSpecialCharEmoji,
                }, ],
                mobile: [{
                    required: true,
                    message: "请输入联系人手机号",
                    trigger: "blur"
                }, {
                    validator: validMobile,
                }, ],
            },
        }
    }
}